Xiaomi mi Flora Relay

Der Raspberry der sich um das Auslesen der miFlora Sensoren kümmert ist im Büro. Die Sensoren später auf dem Balkon. Leider stören die Jalousien das Auslesen der Daten. Also muß ein “Relay” her. Ich hatte noch ein Orange PI Zero herum liegen und dieser wird nun dafür genutzt.

Edit: TL;DR – der Mist wollte partout nicht funktionieren. Problem mit einem Raspberry Zero W gelöst.

Dietpi v150

Diesmal nicht so einfach wie bei Raspi.

Error: connect: No route to host (113)

BlueZ 4.0

bluetoothd -v
5.23

Aktuell ist die Version 5.46

BlueZ 5.0

bluetoothctl –version
5.23

apt-get –purge remove bluez

wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.46.tar.xz

tar xvf bluez-5.46.tar.xz

apt-get install

“error configure: error: no acceptable C compiler found in $PATH

apt-get install build-essential

./configure

make

make install

systemctl status bluetooth

bluetooth.service – Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

Aug 15 09:22:47 miflora_relay systemd[1]: Starting Bluetooth service…
Aug 15 09:22:47 miflora_relay bluetoothd[3627]: Bluetooth daemon 5.23
Aug 15 09:22:47 miflora_relay bluetoothd[3627]: Starting SDP server
Aug 15 09:22:47 miflora_relay bluetoothd[3627]: Excluding (cli) sap
Aug 15 09:22:47 miflora_relay bluetoothd[3627]: Bluetooth management interface 1.0 initialized
Aug 15 09:22:47 miflora_relay systemd[1]: Started Bluetooth service.
Aug 15 12:32:49 miflora_relay systemd[1]: Stopping Bluetooth service…
Aug 15 12:32:49 miflora_relay bluetoothd[3627]: Terminating
Aug 15 12:32:49 miflora_relay bluetoothd[3627]: Stopping SDP server
Aug 15 12:32:49 miflora_relay systemd[1]: Stopped Bluetooth service.

systemctl start bluetooth

systemctl status bluetooth
● bluetooth.service – Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled)
Active: active (running) since Di 2017-08-15 13:05:57 CEST; 4s ago
Docs: man:bluetoothd(8)
Main PID: 16754 (bluetoothd)
Status: “Running”
CGroup: /system.slice/bluetooth.service
└─16754 /usr/local/libexec/bluetooth/bluetoothd

Aug 15 13:05:57 miflora_relay bluetoothd[16754]: Bluetooth daemon 5.46
Aug 15 13:05:57 miflora_relay bluetoothd[16754]: Starting SDP server
Aug 15 13:05:57 miflora_relay bluetoothd[16754]: Bluetooth management interface 1.0 initialized
Aug 15 13:05:57 miflora_relay systemd[1]: Started Bluetooth service.
root@miflora_relay:~/bluez-5.46# systemctl enable bluetooth
Created symlink from /etc/systemd/system/dbus-org.bluez.service to /lib/systemd/system/bluetooth.service.
Created symlink from /etc/systemd/system/bluetooth.target.wants/bluetooth.service to /lib/systemd/system/bluetooth.service.

hciconfig: Kommando nicht gefunden.

Dafür dies hier

bluetoothctl

Geht immer noch nichts.

Nächster Versuch mit einem anderen Betriebssytem

Orange Pi Zero – Ubuntu Server

root@OrangePI:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

hcitool –help
hcitool – HCI Tool ver 4.101

 

geht auch nicht

Raspbian Server

dmesg

auch hier ging es nicht.

Viel mehr Zeit wollte ich nicht mehr investieren. Bei Pimoroni einen Raspi Zero W bestellt, Dietpi aufgespielt, <5 Zeilen in der Shell und die Sensoren wurde gefunden.

Alles weitere wurde so eingerichtet wie beim ursprünglichen Raspi.

Forum thread

Leave a Comment